package com.cskaoyan.bean.wx.coupon.bo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @program: project-two
 * @description:
 * @author: YuHui
 * @create: 2021-08-16 09:33
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CouponBaseVo {
    String errmsg;
    long errno;

    public static CouponBaseVo ok(){
        CouponBaseVo couponBaseVO = new CouponBaseVo();
        couponBaseVO.setErrno(0);
        couponBaseVO.setErrmsg("成功");
        return couponBaseVO;
    }

    public static CouponBaseVo over(){
        CouponBaseVo couponBaseVO = new CouponBaseVo();
        couponBaseVO.setErrno(704);
        couponBaseVO.setErrmsg("优惠券已兑换");
        return couponBaseVO;
    }


    public static CouponBaseVo over2(){
        CouponBaseVo couponBaseVO = new CouponBaseVo();
        couponBaseVO.setErrno(704);
        couponBaseVO.setErrmsg("优惠券已经领取过");
        return couponBaseVO;
    }
    public static CouponBaseVo fail(){
        CouponBaseVo couponBaseVO = new CouponBaseVo();
        couponBaseVO.setErrno(742);
        couponBaseVO.setErrmsg("优惠券不正确");
        return couponBaseVO;
    }
}
